package com.pmgames.vo;

public class Relation implements IXmlSerializable {

	private int id;
	private Content sourceId;	
	private String relation;
	private Content destId;
	
	

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public Content getSourceId() {
		return sourceId;
	}

	public void setSourceId(Content sourceId) {
		this.sourceId = sourceId;
	}

	public String getRelation() {
		return relation;
	}

	public void setRelation(String relation) {
		this.relation = relation;
	}

	public Content getDestId() {
		return destId;
	}

	public void setDestId(Content destId) {
		this.destId = destId;
	}

	public Relation() {
		// TODO Auto-generated constructor stub
	}

	@Override
	public String toXml() {
		String xml = "<relation>";
		xml += "<sourceId>" + sourceId.toXml() + "</sourceId>";
		xml += "<relation>" + relation + "</relation>";
		xml += "<destId>" + destId.toXml() + "</destId>";
		xml += "</relation>";
		return xml;
	}

}
